# pandoc convert & view in browser
# Tip: use "Only One" chrome extension to avoid opening the same url in a new window every time

in_file="$(pwd)/$1"
out_file="${in_file%%.md}.html"

pandoc -r markdown -w html "$in_file" > "$out_file"

"$USERPROFILE\Local Settings\Application Data\Google\Chrome\Application\chrome.exe" \
	--use-spdy=off --disable-application-cache "$out_file"
